<?php
include_once 'app/until/GFW_HTTP.php';
class Layer{

	private $daten;

	public function __construct($match){
		$this->daten = $match;
	}

	public function getWort(RainTPL $design){
		//throw new Exception (CHANGE_CONTROLLER);

		if(file_exists('templates/'.$this->design->ln.'/ajax/layer/'.$this->daten['Page'].'.tpl')){
            $this->design->display($this->design->ln.'/ajax/layer/'.$this->daten['Page'].'.tpl');
		}else{		    
            $this->design->display($this->design->ln.'/ajax/layer/ups.tpl');
		}
	}

}
?>